package bd

import android.view.ViewGroup
import androidx.appcompat.app.AppCompatActivity
import androidx.fragment.app.Fragment

open class FH : Fragment() {




    // 两次点击间隔不能少于1000ms
    private val FAST_CLICK_DELAY_TIME = 1000;
    private var lastClickTime: Long = 0
    fun isFastClick(): Boolean {
        var flag: Boolean = true;
        val currentClickTime = System.currentTimeMillis();
        if ((currentClickTime - lastClickTime) >= FAST_CLICK_DELAY_TIME) {
            flag = false;
        }
        lastClickTime = currentClickTime;
        return flag;
    }
}